<%--
  Created by IntelliJ IDEA.
  User: WT-SUN
  Date: 2017/5/11
  Time: 9:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!doctype html>
<html>
<head>
    <title>培训记录数据</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/train/record/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<form id="formReData" method="POST">
    <input type="hidden" name="id" value="${re.id}"/>
    <input type="hidden" name="planId" value="${re.planId}"/>
    <div class="information">
        <div class="information-title">
            <p>培训计划信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">培训班名称:</label>
                    <input type="text" id="planId" value="${tr.name}" class="easyui-textbox" editable="false" style="width:240px;" data-options="readonly:true"/>
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">计划办班地点:</label>
                    <input class="easyui-textbox" type="text" value="${tr.planTrainPlace}"  data-options="readonly:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">专业类别:</label>
                    <input class="easyui-textbox" type="text" value="${tr.trainTypeIdName}" data-options="readonly:true" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" id="deptDiv1"  <c:if test="${tr.isExternal=='1'}">style="display: none"</c:if><c:if test="${tr.isExternal=='0'}">style="display: block"</c:if>  >
                    <label class="lable-style" >主办单位:</label>
                    <input type="text" class="easyui-textbox" style="width: 240px"  value="${tr.hostDeptIdName}"
                           <c:if test="${tr.isExternal=='1'}">data-options="required:false"</c:if><c:if test="${tr.isExternal=='0'}">data-options="readonly:true"</c:if> >
                </div>
                <div class="form_one" id="deptDiv2" <c:if test="${tr.isExternal=='1'}">style="display: block"</c:if><c:if test="${tr.isExternal=='0'}">style="display: none"</c:if>>
                    <label class="lable-style">主办单位:</label>
                    <input type="text" class="easyui-textbox" style="width: 240px"  value="${tr.hostDeptName}"
                           <c:if test="${tr.isExternal=='1'}">data-options="required:true"</c:if><c:if test="${tr.isExternal=='0'}">data-options="readonly:false"</c:if> >
                </div>
                <div class="form_one">
                    <label class="lable-style">计划开班时间:</label>
                    <input  type="text" class="easyui-textbox" value="${tr.planStartMonth}" data-options="readonly:true"
                           style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">培训级别:</label>
                    <input class="easyui-textbox" type="text"  value="${tr.trainLevelIdName}" data-options="readonly:true" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">计划培训人数:</label>
                    <input class="easyui-textbox" type="text"  value="${tr.planTrainPerson}"  data-options="readonly:true" style="width: 240px;" >
                </div>
                <div class="form_one">
                    <label class="lable-style">计划培训学时:</label>
                    <input class="easyui-textbox" type="text" value="${tr.planTrainHour}"  data-options="readonly:true" style="width: 240px;" >
                </div>
                <div class="form_one">
                    <label class="lable-style">计划培训机构:</label>
                    <input class="easyui-textbox" type="text"value="${tr.hostDeptName}"  data-options="readonly:true"
                           style="width: 240px;"  >
                </div>
            </div>
            <div class="district-wrap" style="clear: both">
                <div class="form_one">
                    <label class="lable-style">是否取证:</label>
                    <label><input type="radio" value="1" disabled="disabled" <c:if test="${tr.hasCertificate=='1'}">checked="checked"</c:if> />是</label>
                    <label><input  type="radio" value="0" disabled="disabled" <c:if test="${tr.hasCertificate=='0'}">checked="checked"</c:if> />否</label>
                </div>
                <div class="form_one">
                    <label class="lable-style">是否外部机构培训:</label>
                    <label><input name="isExternal" type="radio" value="1" disabled="disabled" <c:if test="${tr.isExternal=='1'}">checked="checked"</c:if> />是</label>
                    <label><input name="isExternal" type="radio" value="0" disabled="disabled"  <c:if test="${tr.isExternal=='0'}">checked="checked"</c:if>/>否</label>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>培训记录信息</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <div class="cuttle">
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">实际开班日期:</label>
                    <input name="actualStartTime" type="text"  value="${re.actualStartTime}"  editable="false" class="easyui-datebox" data-options="required:true" id="actualStartTime"
                           style="width: 240px;">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">实际培训学时:</label>
                    <input class="easyui-numberspinner" value="${re.actualTrainHour}"  style="width: 240px;" value="0" name="actualTrainHour"  data-options="required:true,min:0,precision:2">
                </div>
                <div class="form_one">
                    <label class="lable-style">实际办班地点:</label>
                    <input class="easyui-textbox" type="text" name="actualTrainPlace" value="${re.actualTrainPlace}"  data-options="required:true" style="width: 240px;">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">培训形式:</label>
                    <input type="text" style="width: 240px" name="trainFormId" value="${re.trainFormId}" id="trainFormId" data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style" >实际培训机构:</label>
                    <input type="text"  class="easyui-textbox" style="width: 240px" value="${re.actualTrainDeptId}" name="actualTrainDeptId"  data-options="required:true">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">实际培训人数:</label>
                    <input class="easyui-textbox" type="text" id="realUserNum" data-options="readonly:true" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">培训教师:</label>
                    <input class="easyui-textbox" type="text" name="trainTeacher" value="${re.trainTeacher}"  data-options="required:true" style="width: 240px;" >
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">考核方式:</label>
                    <input class="easyui-textbox" type="text" name="testWayCode" value="${re.testWayCode}" style="width: 240px;" >
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 55px">
                    <label class="lable-style">培训内容:</label>
                    <input name="trainContent" type="text" class="easyui-textbox" value="${re.trainContent}" data-options="multiline:true,required:true"
                           style="width: 600px;height: 50px"/>
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 55px">
                    <label class="lable-style">培训效果总结:</label>
                    <input name="trainSummary" type="text" class="easyui-textbox" value="${re.trainSummary}" data-options="multiline:true"
                           style="width: 600px;height: 50px"/>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 720px;height: 55px">
                    <label class="lable-style">改进建议:</label>
                    <input name="improveSuggest" type="text" class="easyui-textbox" value="${re.improveSuggest}" data-options="multiline:true"
                           style="width: 600px;height: 50px"/>
                </div>
            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>记录附件</p>
            <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
        </div>
        <accessory:accessorySimple permission="write" packageKey="record" uploadUserId="${loginUser.id}"  packageInfos="${accessoryList}"
                                   accessoryType="txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
</form>
<div class="information" id="occStateTbDiv" style="display:block;">
    <div class="information-title">
        <p>培训人员信息</p>
        <a href="#"><img src="${ctx}/resources/themes/images/alias_03.png" width="18"></a>
    </div>
    <div class="enclosure">
        <a id="personTb_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg" style="margin:5px;">新增</a>
        <a id="personTb_remove" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-trash fa-lg" style="margin:5px;">移除</a>
        <a id="personTb_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg"  style="margin:5px;">保存</a>
        <table id="personTb"></table>
    </div>
</div>
</body>
</html>